package org.jeecg.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.quartz.service.ICarService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 上海市公共平台心跳检测
 */
@Slf4j
public class CarHeartBeatTaskJob implements Job {
    @Autowired
    private ICarService carService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(DateUtils.now()+":开始调用心跳检测任务");
        carService.shParkingHeartBeat();
        log.info("结束心跳检测任务");
    }
}
